home *** CD-ROM | disk | FTP | other *** search
/ Deadlock 9 / Deadlock 9.adf / Installdeadlock < prev    next >
Text File  |  1992-09-02  |  2KB  |  85 lines

  1. failat 40
  2. setenv dlinstalldir ""
  3. echo "                                "
  4. echo "Deadlock Issue #9 HD Compatible "
  5. echo "CLI-Based Installer "
  6. echo 
  7. echo "Enter path you wish to install to : " noline
  8. if "$KickStart" GT "37.00"
  9.    if exists "c:requestfile"
  10.       c:requestfile drawer "ram:" savemode title="Select path to install to"  drawersonly  > env:DLInstallDir
  11.       echo $dlinstalldir
  12.    else
  13.       setenv >Nil: DLInstallDir ?
  14.    endif
  15. else
  16.    setenv >Nil: DLInstallDir ?
  17. endif
  18. if $DLInstallDir EQ ""
  19.    echo "Installation aborted by User.."
  20. else
  21. if exists $DLInstallDir
  22. LAB Start
  23.    cd >NIL: $DLInstallDir
  24.    if fail
  25.       echo 'Error: Cannot change directory..'
  26.    else
  27.       echo "Attempting to install Deadlock #9 to directory" $DlInstallDir
  28.       echo "Copying 'DeadlockArticles09.dat'.."  noline
  29.       copy dl09:DeadlockArticles09.dat $DLInstallDir
  30.       if not warn
  31.        echo "Done"
  32.        echo "Copying 'DeadlockGFX09.dat'.." noline
  33.        copy dl09:DeadlockGFX09.dat $DLInstallDir
  34.  
  35.        if not warn
  36.         echo "Done"
  37.         echo "Copying 'dl09.exe'.." noline
  38.         copy dl09:Dl09.exe $DlInstallDir
  39.         if not warn
  40.            echo "Done"
  41.            echo 
  42.            echo "Creating Script.." 
  43.             
  44.            echo assign dl09: $dlinstalldir > Deadlock09
  45.            echo "Deadlock will cater for both Normal monitors and Multisync monitors"
  46.            echo "the routines vary slightly."
  47.            ask  "Do you use a Multisync monitor (y/n) :"
  48.            if warn 
  49.             echo "MULTISYNC switch added to Deadlock script"
  50.                   echo "dl09.exe multisync hdinstalled" >> Deadlock09
  51.            else
  52.             echo "Deadlock will run as normal.."
  53.             echo "dl09.exe hdinstalled" >> Deadlock09
  54.            endif
  55.            echo assign dl09: remove >> Deadlock09
  56.  echo ";this mag will run from workbench and cli" >> Deadlock09
  57.  echo ";but it is better to run from cli. see Readme file for info" >> Deadlock09
  58.  copy dl09:Deadlock09.info $dlinstalldir
  59.            echo "Install Complete"
  60.         else
  61.         skip fail
  62.  
  63.         endif
  64.        else
  65.         skip    fail
  66.            endif
  67.       else
  68. lab fail
  69.     echo "Installation failed"
  70.       endif
  71.    endif
  72. else
  73.    echo "could not find $DLInstallDir"
  74.    ask "Shall I create '$DLInstallDir' as a directory:"
  75.    if warn
  76.       echo "Making directory $DLInstallDir.." noline
  77.       makedir "$DLInstallDir"
  78.       echo "Done"
  79.       skip Start BACK
  80.     else
  81.       echo "Install Aborted by User"      
  82.     endif
  83. endif
  84. endif
  85.